To make use of the XPath query functionality within
OpenCities Geospatial Administrator requires knowledge of the underlying XML document (for
example, the GeospatialSchema DOM) that is loaded and an understanding of basic
XPATH expressions. Some examples of XPATH queries are below.
Syntax:
feature
All
<feature> elements within the current context of
the selected schema node.
Syntax:
//feature
All
<feature> elements within the schema.
Syntax:
//feature/Symbology/*[@useCriteria]
All
<symbology> children elements from the schema
that contain a
useCriteria attribute.
Syntax:
//property[@type="string"]
All
<property> elements of
type="string" from the schema.
Syntax:
//feature[substring(@name,1,1) = "A"]
All
<feature> elements within the schema where the
name attribute starts with the letter
"A".
Syntax:
//CellName[contains(.,'_')]
All
<CellName> elements within the schema where the
name contains the
"_" character.